#!/usr/bin/python

lines = open('data','r').readlines()

def splitArray(arr, delimiter):
	res=[]
	pak=[]
	for x in arr:
		if delimiter(x):
			res.append(pak)
			pak=[]
			continue
		pak.append(x)
	res.append(pak)
	return res
def joinArray(arr, delim):
	res=[]
	for x in arr[:-1]:
		for y in x:
			res.append(y)
		res.append(delim)
	for y in arr[-1]:
		res.append(y)
	return res

def isStepNumberLine(x):
	return x.find('Step #')==0

print ''.join(joinArray(splitArray(lines, isStepNumberLine),'-------\n'))